package reflectCus;

import reflectCus.annotations.AutoRunClass;
import reflectCus.annotations.AutoRunMethod;

import javax.annotation.processing.SupportedOptions;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.net.SocketTimeoutException;
import java.sql.SQLOutput;

@AutoRunClass
public class Person {

    private    String name="张三";
    private int age=22;
    public Person(){

    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public void seeOcen(){
        System.out.println(name+":看海中...");
    }
    @AutoRunMethod(vectore = 4,runTimes = 3)
    public void sayHi(){
        System.out.println(name+":说...");
    }
    private void eats(){
        System.out.println(name+":吃...");
    }
    public void play(String name,String other){
        System.out.println(this.name+":玩"+name+"之后,又玩"+other);
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
